from jsonrpc import dispatcher
from werkzeug.serving import run_simple

from biz import auto
from rest_rpc.server import application


# 列出所有可调用的方法入口

@dispatcher.add_method
def test():
    return auto.exec()


# 监听的端口号
port = 8000

if __name__ == '__main__':
    run_simple('0.0.0.0', port, application)
